package classconverstation.cscl.ist.psu.edu.client.services;

import java.util.ArrayList;

import classconverstation.cscl.ist.psu.edu.client.messengers.ClassCommonsMessage;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ClassCommonsServiceAsync {

	void postMessage(ClassCommonsMessage msg, int cid, AsyncCallback<Boolean> callback);

	void getCid(String course_name, AsyncCallback<Integer> callback);

	void loadClassCommonsMsgs(int course_id,AsyncCallback<ArrayList<ClassCommonsMessage>> callback);
	
    void loadClassCommonsMsgs(int course_id, long time, AsyncCallback<ArrayList<ClassCommonsMessage>> callback);

	void updateLikeCount(int mid, AsyncCallback<Integer> callback);

	void updatePinState(ClassCommonsMessage msg, int finalState, AsyncCallback<Boolean> callback);

}
